package com.basker.pisces.domain.value;

public class IdValue implements IValueObject {

    private Object id;

    public IdValue(Object id) {
        this.id = id;
    }

    @Override
    public Object getDataValue() {
        return id;
    }

    @Override
    public String getPresentValue() {
        return id != null ? id.toString() : "";
    }

    @Override
    public boolean isEmpty() {
        return id == null || "".equals(id);
    }

}
